package com.tqz.rc.spring.cloud;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>通过springboot自动装配加载 `META-INF/spring.factories` 文件里面的配置类。
 *
 * @author tianqingzhao
 * @since 2021/9/2 14:51
 */
@Configuration
public class TqzRcServiceAutoConfiguration {

    @Bean
    @ConditionalOnClass(TqzRcProperties.class)
    public TqzRcServiceManager tqzRcServiceManager() {
        return new TqzRcServiceManager();
    }
}
